package com.yangye.springclouddemozookeeper.controller;

import com.yangye.springclouddemozookeeper.listener.DefaultLoadBanlancer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yangye
 * @date 2020/10/19
 */
@RestController
public class ServiceController {


	@GetMapping("service")
	List<String> listService() {
		return DefaultLoadBanlancer.SERVER_LIST;
	}

	@GetMapping("test")
	User test(User user) {
		System.out.println(user.getCreateTime());
		System.out.println(user.getCreateTime2());
		return user;
	}
}
